angular.module('myApp', ['ngRoute']).config(['$routeProvider', '$locationProvider', function($routeProvider, $locationProvider) {
	$locationProvider.hashPrefix('');
	$routeProvider.when('/user', {
		templateUrl: 'views/system/user.html',
		controller: 'userController'
	}).when('/role', {
		templateUrl: 'views/system/role.html',
		controller: 'roleController'
	}).when('/resource', {
		templateUrl: 'views/system/resource.html',
		controller: 'resourceController'
	}).when('/in', {
		templateUrl: 'views/stock/in.html',
		controller: 'inController'
	}).when('/out', {
        templateUrl: 'views/stock/out.html',
        controller: 'outController'
    }).otherwise({
		templateUrl: 'main.html'
	});
}]);